import { Language } from "../../../../../extend/language/Language";
import { HTMLUtil } from "../../../../../com/gengine/utils/HTMLUtil";
import { ObjCreate } from "../../common/ObjCreate";
import { GlobalStyle } from "../../../../common/global/GlobalStyle";
import { GTextFiled } from "../../../../../com/mui/controls/GTextFiled";
type int = number;
//class GuildPartyRewardItem
    
    export  class GuildPartyRewardItem /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.init();
            this.mouseEnabled = false;
            return;
        }

        public updateData(arg1: int, arg2: number, arg3: number, arg4: number): void
        {
            var loc1="";
            if (arg1 != 1) 
            {
                if (arg1 != 2) 
                {
                    if (arg1 == 3) 
                    {
                        loc1 = Language.getString(11123);
                    }
                }
                else 
                {
                    loc1 = Language.getString(11129);
                }
            }
            else 
            {
                loc1 = Language.getString(11121);
            }
            this._nameTxt.text = loc1;
            this._valueTxt1.htmlText = HTMLUtil.addColor(arg2.toString(), "#00ff00") + " " + Language.getString(57625);
            this._valueTxt2.htmlText = HTMLUtil.addColor(arg3.toString(), "#00BEFF") + " " + Language.getString(57625);
            this._valueTxt3.htmlText = HTMLUtil.addColor(arg4.toString(), "#FF00FF") + " " + Language.getString(57625);
            return;
        }

        /* internal  */init(): void
        {
            this._nameTxt = ObjCreate.createGTextField("", 0, 0, 100, 20, this, GlobalStyle.textFormatPurple);
            this._nameTxt.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._valueTxt1 = ObjCreate.createGTextField("", 50, 0, 100, 20, this);
            this._valueTxt1.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._valueTxt2 = ObjCreate.createGTextField("", 135, 0, 35, 20, this);
            this._valueTxt2.autoSize = flash.text.TextFieldAutoSize.RIGHT;
            this._valueTxt3 = ObjCreate.createGTextField("", 220, 0, 35, 20, this);
            this._valueTxt3.autoSize = flash.text.TextFieldAutoSize.RIGHT;
            return;
        }

        /* internal */ /* var */_nameTxt: GTextFiled;

        /* internal */ /* var */_valueTxt1: GTextFiled;

        /* internal */ /* var */_valueTxt2: GTextFiled;

        /* internal */ /* var */_valueTxt3: GTextFiled;
    }
